home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.6 KB | 35 lines | [TEXT/GEOL] |
- Item 6604287 10-July-90 14:42PDT
-
- From: PILLAR.CORP Pillar, Chris Ovard,PRT
-
- To: MACDTS Macintosh Developer Tech Supt
-
- cc: MACAPP.TECH$ MacApp Technical
-
- Sub: Moveable Modal Dialogs
-
- Hello MacAppers!
-
- I'm interested in getting some info about moveable modal dialogs (if there
- really is such a thing.) We've got a few of these in our application and they
- are definitely moveable, but they aren't really modal. By this I mean that we
- can't easily keep a context-switch from occuring when one of these dialogs is
- up. I understand why the context-switch happens (it's not a dBoxProc window
- (because it has to be moveable), so MultiFinder turns the stray mouse down into
- an app4 suspend event and passes it back to the app before it procedds to usurp
- control.) What I can't figure out is how to get this to stop happening.
- I'm currently overriding TApplication.PollEvent to filter out mouse downs
- outside the moveable modal dialog. I do this by calling OSEventAvail to test
- the event and GetOSEvent if it's a bad mouse down -- in effect throwing out the
- mouse down event. This is insufficient, however, because the context-switch
- still occurs. IS THERE ANY WAY TO KILL THIS EVENT BEFORE IT CAUSES A
- CONTEXT-SWITCH ? I'd appreciate any feedback on this problem.
-
- I am not having fun yet,
- Tom Dinger
-
- P.S. It seems as though I saw a magazine article about moveable modal dialogs
- recently, but can't seem to locate it. Does anyone remember where that article
- appeared?
-
-